import request from '@/utils/request'

// 查询sub_community列表
export function listSubCommunity(query) {
  return request({
    url: '/system/subCommunity/list',
    method: 'get',
    params: query
  })
}

// 查询sub_community详细
export function getSubCommunity(id) {
  return request({
    url: '/system/subCommunity/' + id,
    method: 'get'
  })
}

// 新增sub_community
export function addSubCommunity(data) {
  return request({
    url: '/system/subCommunity',
    method: 'post',
    data: data
  })
}

// 修改sub_community
export function updateSubCommunity(data) {
  return request({
    url: '/system/subCommunity',
    method: 'put',
    data: data
  })
}

// 删除sub_community
export function delSubCommunity(id) {
  return request({
    url: '/system/subCommunity/' + id,
    method: 'delete'
  })
}
export function saveData(data) {
  return request({
    url: '/system/subCommunity/saveData',
    method: 'post',
    data: data
  })
}